import request from '@/utils/request'

export function temperature(data) {
  return request({
    url: '/iot/iot/screen/temperature',
    method: 'post',
    data: data
  })
}
export function alarm(data) {
  return request({
    url: '/iot/iot/screen/alarm',
    method: 'post',
    data: data
  })
}
export function products(data) {
  return request({
    url: '/iot/iot/screen/products',
    method: 'post',
    data: data
  })
}
export function checkPlanPer(data) {
  return request({
    url: '/device/screen/checkPlanPer',
    method: 'post',
    data: data
  })
}
export function cncStatus(data) {
  return request({
    url: '/iot/iot/screen/cncStatus',
    method: 'post',
    data: data
  })
}
export function checkToday(data) {
  return request({
    url: '/device/screen/checkToday',
    method: 'post',
    data: data
  })
}
export function maintainMonth(data) {
  return request({
    url: '/device/screen/maintainMonth',
    method: 'post',
    data: data
  })
}
export function oee(data) {
  return request({
    url: '/iot/iot/screen/oee',
    method: 'post',
    data: data
  })
}
export function deviceUseRate(data) {
  return request({
    url: '/device/screen/deviceUseRate',
    method: 'post',
    data: data
  })
}
export function overRecords(data) {
  return request({
    url: '/device/screen/overRecords',
    method: 'post',
    data: data
  })
}
export function repairingDetails(data) {
  return request({
    url: '/device/screen/repairingDetails',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  设备功率
 * @Date 16:23 2022/10/17
 **/
export function equipmentPower(data) {
  return request({
    url: '/iot/iot/screen/equipmentPower',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  峰平谷电量 kWh
 * @Date 16:39 2022/10/17
 **/
export function eachElectric(data) {
  return request({
    url: '/iot/iot/screen/eachElectric',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  电量同比分析 kWh
 * @Date 10:40 2022/10/18
 **/
export function comparedElectric(data) {
  return request({
    url: '/iot/iot/screen/comparedElectric',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  日用电量趋势
 * @Date 14:36 2022/10/18
 **/
export function dailyElectric(data) {
  return request({
    url: '/iot/iot/screen/dailyElectric',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  设备状态统计（甘特图）
 * @Date 17:02 2022/10/18
 **/
export function ganttChart(data) {
  return request({
    url: '/iot/iot/screen/ganttChart',
    method: 'post',
    data: data
  })
}
export function monthRepairNums(data) {
  return request({
    url: '/device/repair/statistic/monthRepairNums',
    method: 'post',
    data: data
  })
}
export function monthRepairTime(data) {
  return request({
    url: '/device/repair/statistic/monthRepairTime',
    method: 'post',
    data: data
  })
}
